import request from '@/plugins/request';

// 人员列表
export function rbacmembermemberlist(data) {
    return request({
        url: '/v1/rbac/member/member-list',
        method: 'get',
        params: data
    });
}

// 人员更新
export function rbacmemberupdatemember(data) {
    return request({
        url: '/v1/rbac/member/update-member',
        method: 'post',
        data
    });
}

// 员工列表
export function rbacmemberallmemberlist(data) {
    return request({
        url: '/v1/rbac/member/all-member-list',
        method: 'get',
        params: data
    });
}

// 员工更新
export function rbacmemberupdatepersonnel(data) {
    return request({
        url: '/v1/rbac/member/update-personnel',
        method: 'post',
        data
    });
}

// 员工添加
export function rbacmemberaddpersonnel(data) {
    return request({
        url: '/v1/rbac/member/add-personnel',
        method: 'post',
        data
    });
}

// 权限-绑定项目
export function rbacmemberbindproject(data) {
    return request({
        url: '/v1/rbac/member/bind-project',
        method: 'post',
        data
    });
}

// 权限-解绑项目(人员删除)
export function rbacmemberunbindproject(data) {
    return request({
        url: '/v1/rbac/member/unbind-project',
        method: 'post',
        data
    });
}

// 操作日志
export function rbacmembermemberrecord(data) {
    return request({
        url: '/v1/rbac/member/member-record',
        method: 'get',
        params: data
    });
}

// 钉钉同步员工
export function rbacmembersyncmember(data) {
    return request({
        url: '/v1/rbac/member/sync-member',
        method: 'get',
        params: data
    });
}

// 用户更新密码
export function rbacmemberchangepassword(data) {
    return request({
        url: '/v1/rbac/member/change-password',
        method: 'post',
        data
    });
}
// 人员离职
export function rbacmemberQuit(data) {
    return request({
        url: '/v1/rbac/member/quit',
        method: 'post',
        data
    });
}
// 人员添加
export function addPersonnel(data) {
    return request({
        url: '/v1/rbac/member/add-personnel',
        method: 'post',
        data
    });
}